package com.sz.admin.system.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class SysTempFileTableDef extends TableDef {

    /**
     * <p>
 模版文件表
 </p>

 @author sz-admin
 @since 2024-12-05
     */
    public static final SysTempFileTableDef SYS_TEMP_FILE = new SysTempFileTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn URL = new QueryColumn(this, "url");

    public final QueryColumn REMARK = new QueryColumn(this, "remark");

    public final QueryColumn DEL_FLAG = new QueryColumn(this, "del_flag");

    public final QueryColumn CREATE_ID = new QueryColumn(this, "create_id");

    public final QueryColumn TEMP_NAME = new QueryColumn(this, "temp_name");

    public final QueryColumn UPDATE_ID = new QueryColumn(this, "update_id");

    public final QueryColumn SYS_FILE_ID = new QueryColumn(this, "sys_file_id");

    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, URL, REMARK, CREATE_ID, TEMP_NAME, UPDATE_ID, SYS_FILE_ID, CREATE_TIME, UPDATE_TIME};

    public SysTempFileTableDef() {
        super("", "sys_temp_file");
    }

    private SysTempFileTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public SysTempFileTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new SysTempFileTableDef("", "sys_temp_file", alias));
    }

}
